#include <stdio.h>

void classify_array (int* pa , size_t sz)
{

    int tmp [sz] ;

    int a = 0 , b = sz / 2; 

    for (int i = 0 ; i < sz ; i++)
    {

        if (pa [i] % 2 != 0)
        {

            tmp [a] = pa [i] ;

            a++ ;

        }

        else
        {

            tmp [b] = pa [i] ;

            b++ ;

        }

    }

    for (int i = 0 ; i < sz ; i++)
    {

        pa [i] = tmp [i] ;

    }

}

int main ()
{

    int array [10] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } ;

    size_t sz = sizeof (array) / sizeof  (array [0]) ;

    classify_array (array , sz) ;

    for (int i = 0 ; i < sz ; i++)
    {

        printf ("%d " , array [i]) ;

    }

    return 0 ;

}